package com.sdx.console.content.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import lombok.Data;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.ColumnIgnore;

import javax.validation.constraints.NotNull;
import java.util.Date;

/* 
* 
* gen by Spring Boot2 Admin 2019-02-20
*/
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@Data
public class ResColumn extends BaseEntity{

    //栏目id
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @AutoID
    private Integer colId ;
	
    //上级栏目 0表示顶级栏目

    private Integer pColId ;
	
    //所属模块 逗号隔开多个模块，all、所有，course、公开课

    private String module ;
	
    //栏目名称

    private String colName ;
	
    //可用标记 1、可用，0、不可用

    private String colStatus ;
	
    //是否置顶 1、置顶，0、不置顶

    private Integer isTop ;

    //排序

    private Integer colSort ;
	
    //省ID[baser_prov]

    private Integer provId ;
	
    //创建人

    private Integer createdBy ;
	
    //创建人名称

    private String createdName ;
	
    //创建时间

    private Date createdTime ;
	
    //更新人

    private Integer updatedBy ;
	
    //更新人名称

    private String updatedName ;
	
    //更新时间

    private Date updatedTime ;

    @ColumnIgnore
	private String moduleName;
	@ColumnIgnore
	private String provName;



}
